package com.education.admin.api.controller.study;

import com.education.common.base.BaseController;
import com.education.common.utils.Result;
import com.education.service.study.GradeInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * 年级管理
 * @author 余一
 * @date 2021/9/8  11:19
 */
@Controller
public class GradeController extends BaseController {
    @Autowired
    private GradeInfoService gradeInfoService;

    @GetMapping("/system/grades")
    @ResponseBody
    public Result list(@RequestParam Map params){
        return gradeInfoService.pagination(params);
    }
}
